﻿using API.Bll;
using API.DAL;
using API.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace API.UI.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class hyController : ControllerBase
    {
        public hyController(hyBll bhp)
        {
            Bhp = bhp;
        }

        public hyBll Bhp { get; }



        [HttpPost("addlist")]
        public int addlist(hy hy)
        {
            return Bhp.addlist(hy);
        }

        [HttpPost("dllist")]
        public hy dllist(string name, string passwrod)
        {

            return Bhp.dllist(name, passwrod);
        }
    }
}
